package com.boot.handle;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.ControllerAdvice;


/**
 * Created  on 18-6-29 上午9:29.
 * 作者: LiuLiHao
 * 说明:
 */
@ControllerAdvice
public class ExceptionHandle {

	private final static Logger logger = LoggerFactory.getLogger(ExceptionHandle.class);
//	@ExceptionHandler(value = Exception.class)
//	@ResponseBody
//	public Result handle(Exception e){
//		if(e instanceof GirlException){
//			return ResultUtil.error(((GirlException) e).getCode(),e.getMessage());
//		}else{
//			logger.error("[系统异常]{}",e);
//			return ResultUtil.error(-1,"未知错误");
//		}
//
//	}
}
